package com.ywl.exercise.entity;

import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Basic;


@Table(name = "admins", schema = "", catalog = "crazyguessimages")//对应的表名和数据库名
@Entity
public class AdminEntity {
	private String adminid; //管理员登录名
	private String adminpwd; //管理员登录密码
	
	@Column(name = "adminid", nullable = false, insertable = true, updatable = true, length = 30, precision = 0)
    @Id //自增的id，主键
    @GeneratedValue
	public String getAdminid() {
		return adminid;
	}
	public void setAdminid(String adminid) {
		this.adminid = adminid;
	}
	
	@Column(name = "adminpwd", nullable = true, insertable = true, updatable = true, length = 20, precision = 0)
    @Basic
	public String getAdminpwd() {
		return adminpwd;
	}
	public void setAdminpwd(String adminpwd) {
		this.adminpwd = adminpwd;
	}
	
}
